﻿#ifndef CVideoState_H
#define CVideoState_H
/********************************************************************************
** @ Date:2025/08/21
** @ Author: HanJiaXin
** @ Description:摄像头状态卡片界面
** @ Version:1.0.0
** @ ClassName:CVideoState
** @ Fun:
********************************************************************************/
#include <QWidget>
#include <QTimer>
#include "ui_CVideoState.h"
#include "CDevDataCam.h"

class CVideoState : public QWidget
{
	Q_OBJECT

public:
	CVideoState(CDevDataCam* pDevData,QWidget *parent = nullptr);
	~CVideoState();

private:
	void initUI();

public slots:
	void refreshData(bool bRefresh);     // 这个函数会被外部调用

private slots:
	void slotRefreshUI();//刷新界面数据定时器

signals:
	void finished(int result); // 可选：用于传递结果信号

private:
	Ui::CVideoStateClass ui;
	QString m_sNormalLamp;
	QString m_sWorkLamp;
	QString m_sAlarmLamp;
	QString m_sWarningLamp;
	CDevDataCam* m_pDevData;
	QTimer* m_pTimer;
};

#endif